<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddFieldsToPatentAppliesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('patent_applies', function (Blueprint $table) {
            $table->string('field1')->nullable()->comment('备用1');
            $table->string('field2')->nullable()->comment('备用2');
            $table->string('field3')->nullable()->comment('备用3');
            $table->string('field4')->nullable()->comment('备用4');
            $table->string('field5')->nullable()->comment('备用5');
            $table->string('field6')->nullable()->comment('备用6');
            $table->string('field7')->nullable()->comment('备用7');
            $table->string('field8')->nullable()->comment('备用8');
            $table->string('field9')->nullable()->comment('备用9');
            $table->string('field10')->nullable()->comment('备用10');
            $table->string('field11')->nullable()->comment('备用11');
            $table->string('field12')->nullable()->comment('备用12');
            $table->string('field13')->nullable()->comment('备用13');
            $table->string('field14')->nullable()->comment('备用14');
            $table->string('field15')->nullable()->comment('备用15');
            $table->string('field16')->nullable()->comment('备用16');
            $table->string('field17')->nullable()->comment('备用17');
            $table->string('field18')->nullable()->comment('备用18');
            $table->string('field19')->nullable()->comment('备用19');
            $table->longText('field_data')->nullable()->comment('备用组');
            $table->longText('field_data1')->nullable()->comment('备用1组');
            $table->longText('field_data2')->nullable()->comment('备用2组');
            $table->longText('field_data3')->nullable()->comment('备用3组');
            $table->longText('field_data4')->nullable()->comment('备用4组');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('patent_applies', function (Blueprint $table) {
            //
        });
    }
}
